﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using CMSAR.Domain;

namespace CMSAR.FluentNHibernate.FluentMapping
{
   public class PageMapping:ClassMap<Page>
    {
       public PageMapping()
       {
           Id(x => x.Id);
           Map(x => x.Title);
           Map(x => x.Url);
           Map(x => x.Created);
           Map(x => x.Modified);
           HasMany(x => x.WidgetInstance).Cascade.All();
       }
    }
}
